home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / axnteven / frconnec.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-03-26  |  1.9 KB  |  66 lines

  1. VERSION 5.00
  2. Begin VB.Form FrmConnect 
  3.    Caption         =   "Connection"
  4.    ClientHeight    =   1095
  5.    ClientLeft      =   4995
  6.    ClientTop       =   5310
  7.    ClientWidth     =   4470
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   1095
  10.    ScaleWidth      =   4470
  11.    StartUpPosition =   2  'CenterScreen
  12.    Begin VB.ComboBox cmbComputer 
  13.       Height          =   315
  14.       Left            =   1560
  15.       Style           =   2  'Dropdown List
  16.       TabIndex        =   3
  17.       Top             =   120
  18.       Width           =   2775
  19.    End
  20.    Begin VB.CommandButton Command2 
  21.       Caption         =   "Ok"
  22.       Height          =   375
  23.       Left            =   3360
  24.       TabIndex        =   1
  25.       Top             =   600
  26.       Width           =   975
  27.    End
  28.    Begin VB.CommandButton Command1 
  29.       Caption         =   "Cancel"
  30.       Height          =   375
  31.       Left            =   2220
  32.       TabIndex        =   0
  33.       Top             =   600
  34.       Width           =   975
  35.    End
  36.    Begin VB.Label Label1 
  37.       Caption         =   "Select computer"
  38.       Height          =   255
  39.       Left            =   120
  40.       TabIndex        =   2
  41.       Top             =   180
  42.       Width           =   1335
  43.    End
  44. Attribute VB_Name = "FrmConnect"
  45. Attribute VB_GlobalNameSpace = False
  46. Attribute VB_Creatable = False
  47. Attribute VB_PredeclaredId = True
  48. Attribute VB_Exposed = False
  49. Private Sub Command1_Click()
  50.   Unload FrmConnect
  51. End Sub
  52. Private Sub Command2_Click()
  53.   FrmLog.NTEventLogX.MachineName = cmbComputer.Text
  54.   FrmLog.NTEventLogX.Active = False
  55.   Unload FrmConnect
  56. End Sub
  57. Private Sub Form_Load()
  58.   cmbComputer.Clear
  59.   Set Servers = FrmLog.NTEventLogX.GetServers("")
  60.   For i = 0 To Servers.Count - 1
  61.     S = Servers.Item(i)
  62.     cmbComputer.AddItem (S)
  63.     If S = FrmLog.NTEventLogX.MachineName Then cmbComputer.ListIndex = i
  64.   Next i
  65. End Sub
  66.